﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Aulac.Client.Data.XmlQuery;
using System.Xml;
using Aulac.Global.Xml;

namespace Aulac.Client.Reports.Ems.WinForm
{
    public partial class FormRptRvnMng : Aulac.Client.Reports.Ems.Forms.FormRptMngEms
    {
        public FormRptRvnMng()
        {
            InitializeComponent();
        }
        protected override void OnLoadListRptOnServerToCtrl(Aulac.UtilityTools.AulacGridView grdView)
        {
           // base.OnLoadListRptOnServerToCtrl(grdView);
            
            /** Other Write : Thangnc **/
            /** Date Code : 09252010 **/
            /*----------------------- Code Sample ----------------------*/
            ClientExecXmlQueryDataCatalog mQueryXml = new ClientExecXmlQueryDataCatalog();
            mQueryXml.ObjQueryVchLines.TableName = Aulac.Data.Resource.TableSysNames.Dm_RptList;
            string sqlQuery = string.Format("SELECT * FROM {0} ", Aulac.Data.Resource.TableSysNames.Dm_RptList);
            mQueryXml.ObjQueryVchLines.SqlQueryString = sqlQuery;
            mQueryXml.ObjQueryVchLines.FilterString = string.Format(" {0} = {0}", tagRpt.RptGrpID);
            mQueryXml.ObjQueryVchLines.AddValueParamFilterItem(tagRpt.RptGrpID, "01");
            mQueryXml.SetRequestInfo(Aulac.Verb.AulacVerb.Catalog.QueryCatalog, Aulac.Verb.AulacVerb.Catalog.Noun.AulacCatalog);

            XmlDataDocument outDoc = mQueryXml.ExecureQueryData();
            grdView.AddDataInParentNodeToControl(XmlProcess.GetVchLinesElm(outDoc));
            /*----------------------- Code Sample ----------------------*/
           
            //Please Implement code
        }
    }
}
